package com.example.bookstore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

@Data
public class Collect {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private int userId;
    private int bookId;
    private String addTime;//添加时间

    @TableField(exist = false)
    private String bookImg;
    @TableField(exist = false)
    private Double bookPrice;//价格
    @TableField(exist = false)
    private String bookName;//书名
    @TableField(exist = false)
    private double inventory;//库存
    @TableField(exist = false)
    private int status;//状态
}
